﻿<ss:AppView x:Class="SmartSpace.UI.Silverlight.Dynamic.ListTemplateView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  
    xmlns:ss="clr-namespace:SmartSpace.UI.Silverlight;assembly=SmartSpace.UI.Silverlight"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="600">
    <toolkit:BusyIndicator Name="m_busy">
        <Grid x:Name="LayoutRoot">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Border Grid.Row="0">
                <ss:SlToolbar>
                    <TextBlock Text="任务类型:" VerticalAlignment="Center" Margin="5,0,0,0" Visibility="Collapsed"/>
                    <ComboBox Name="m_listJobType" Width="100" Visibility="Collapsed">
                        <ComboBox.Items>
                            <ComboBoxItem Content="待办任务" Tag="1"/>
                            <ComboBoxItem Content="已办任务" Tag="2"/>
                        </ComboBox.Items>
                    </ComboBox>
                    <TextBlock Text="状态:" VerticalAlignment="Center" Margin="5,0,0,0" Visibility="Collapsed"/>
                    <ComboBox Name="m_listStatus" Width="100"  Visibility="Collapsed">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Name}"/>
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                    <Button Name="m_btnView" Click="m_btnView_Click" Margin="5,5,0,5">
                        <StackPanel Orientation="Horizontal">
                            <Image Source="./Resources/ViewAndApprove.png" Margin="0,0,3,0"/>
                            <TextBlock Text="查看"/>
                        </StackPanel>
                    </Button>
                    <TextBlock Text="标题:" Margin="5,5,0,5" VerticalAlignment="Center" />
                    <TextBox Name="m_textName" Width="220" VerticalAlignment="Center" Margin="5,5,0,5"/>
                    <Button Name="m_btnRefresh" Click="m_btnRefresh_Click" Margin="5,5,0,5">
                        <StackPanel Orientation="Horizontal">
                            <Image Source="./Resources/Refresh.png" Margin="0,0,3,0"/>
                            <TextBlock Text="刷新"/>
                        </StackPanel>
                    </Button>
                </ss:SlToolbar>
            </Border>
            <ss:SlDataGrid Grid.Row="1" x:Name="m_dataGrid" AutoGenerateColumns="False" Background="{x:Null}">
            </ss:SlDataGrid>
            <Border Grid.Row="2">
                <ss:SlPagedbar Name="m_pagedbar" Tag="{Binding RelativeSource={RelativeSource TemplatedParent}}"/>
            </Border>
        </Grid>
    </toolkit:BusyIndicator>
</ss:AppView>
